package day02;

public class CharDemo {
    public static void main(String[] args) {
        //char:字符型，2个字节;a 97; A 65; 0 48;
        char c1 = '女';
        char c2 = 'f';
        char c3 = '6';
        char c4 = ' ';//空格符
        //char c5 =  女;必须放到单引号中
        //char c6 = '';必须有字符
        //char c7 = '10';只能存一个字符

        char c8 = 65;//0到65535之间
        System.out.println(c8);//依据变量的类型做输出展示，c8为char型输出char型
        char c9 = '\'';//转译符号\将'不特殊化
        System.out.println(c9);
        char c10 = '\\';
        System.out.println(c10);
    }
}
